[#ftl]
[#--include "../../util.ftl"/--]

[@define "agile.form.Textarea" "agile.form.TextBox"]		
	category:"SimpleTextarea Component"
	,widgetName:"SimpleTextarea"
	,resizeAxis:"xy"
	,attributes:agile.delegate(agile.form.TextBox.prototype.attributes,{
		value:lang.mixin({},agile.MultiTextMetadata,{})
		//rows: lang.mixin({},agile.NumberMetadata,{}),
		//cols:lang.mixin({},agile.NumberMetadata,{})						
	})
	,_getDelegatePrototype:function(){
		agile.requireX("dijit/form/SimpleTextarea");
//		this.metadata("dojoDeclaredClass","dijit/form/SimpleTextarea");
		return dijit.form.SimpleTextarea.prototype;
	}
//	,constructor:function(){
//		agile.requireX("dijit/form/SimpleTextarea");
//	}
	,init:function(){
		var value = this.attributes.value.parse(this.metadata("parameters.value"));
		this.metadata("parameters.value",value);
//		//console.log("Textarea.init",this.delegate.get("value"),"=====",value);
//		TODO:fixme the Textarea can not display multiple line
		this.delegate.set("value",value);
//		//console.log("Textarea.init",this.delegate.get("value"),"*****",value);
	}
[/@]
